<template>
	<view>
		<button @click="get">脚本</button>
		<view>共{{total}}</view>
	</view>
	
</template>

<script>
	export default {
		data() {
			return {
				total:0
			}
		},
		methods: {
			get(){
				uniCloud.callFunction({
					name: 'company_collect_fixed',
					data:{type:0}
				}).then((res) => {
					this.total = res.result;
					console.log(res);
				}).catch((err) => {
					console.log(err);
					uni.hideLoading()
					uni.showModal({
						content: `查询失败，错误信息为：${err.message}`,
						showCancel: false
					})
				})
			}
		}
	}
</script>

<style>

</style>
